/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Core;

/**
 *
 * @author THINH
 */
public class Status {
    //character
    public static final int GoLeft = 0;
    public static final int GoRight = 1;
    public static final int GoUp = 2;
    public static final int GoDown = 3;
    public static final int ShootNormal = 5;
    public static final int Stand = 6;
    public static final int JumpLeft = 7;
    public static final int JumpRight = 8;
    public static final int StandLeft = 9;
    public static final int StandRight = 10;
    public static final int Sit = 11;
    public static final int SitLeft = 12;
    public static final int SitRight = 13;
    public static final int ShootHigh = 14;
    public static final int ShootLeft = 15;
    public static final int ShootRight = 16;
    //
    public int value;
    public Status()
    {
        value = -1;
    }
    public boolean isJump()
    {
        return value == JumpLeft || value == JumpRight  ;    
    }
    public boolean isLeft()
    {
        return value == JumpLeft || value == GoLeft || value == StandLeft || value == SitLeft 
                || value == ShootLeft;
    }
    public boolean isRight()
    {
        return value == JumpRight || value == GoRight || value == StandRight || value == SitRight 
                || value == ShootRight;
    }
    
    public boolean isStand()
    {
        return value == StandLeft || value == StandRight  || value == Stand;
    }
    
    public boolean isSit()
    {
        return value == SitLeft || value == SitRight  || value == Sit;
    }
    
    public boolean isShoot()
    {
        return value == ShootLeft || value == ShootRight || value == ShootNormal || value == ShootHigh;
    }
    
    public boolean isGo()
    {
        return value == GoLeft || value == GoRight;
    }
    
   
}
